﻿using System;
using UnityEngine;

namespace IllusionUtility.SetUtility
{
	// Token: 0x02000349 RID: 841
	public static class TransformRotationEx
	{
		// Token: 0x0600153C RID: 5436 RVA: 0x000913FC File Offset: 0x0008F5FC
		public static void SetRotationX(this Transform transform, float x)
		{
			Vector3 euler = new Vector3(x, transform.rotation.eulerAngles.y, transform.rotation.eulerAngles.z);
			transform.rotation = Quaternion.Euler(euler);
		}

		// Token: 0x0600153D RID: 5437 RVA: 0x0009144C File Offset: 0x0008F64C
		public static void SetRotationY(this Transform transform, float y)
		{
			Vector3 euler = new Vector3(transform.rotation.eulerAngles.x, y, transform.rotation.eulerAngles.z);
			transform.rotation = Quaternion.Euler(euler);
		}

		// Token: 0x0600153E RID: 5438 RVA: 0x0009149C File Offset: 0x0008F69C
		public static void SetRotationZ(this Transform transform, float z)
		{
			Vector3 euler = new Vector3(transform.rotation.eulerAngles.x, transform.rotation.eulerAngles.y, z);
			transform.rotation = Quaternion.Euler(euler);
		}

		// Token: 0x0600153F RID: 5439 RVA: 0x000914EC File Offset: 0x0008F6EC
		public static void SetRotation(this Transform transform, float x, float y, float z)
		{
			Vector3 euler = new Vector3(x, y, z);
			transform.rotation = Quaternion.Euler(euler);
		}

		// Token: 0x06001540 RID: 5440 RVA: 0x00091510 File Offset: 0x0008F710
		public static void SetLocalRotationX(this Transform transform, float x)
		{
			Vector3 euler = new Vector3(x, transform.localRotation.eulerAngles.y, transform.localRotation.eulerAngles.z);
			transform.localRotation = Quaternion.Euler(euler);
		}

		// Token: 0x06001541 RID: 5441 RVA: 0x00091560 File Offset: 0x0008F760
		public static void SetLocalRotationY(this Transform transform, float y)
		{
			Vector3 euler = new Vector3(transform.localRotation.eulerAngles.x, y, transform.localRotation.eulerAngles.z);
			transform.localRotation = Quaternion.Euler(euler);
		}

		// Token: 0x06001542 RID: 5442 RVA: 0x000915B0 File Offset: 0x0008F7B0
		public static void SetLocalRotationZ(this Transform transform, float z)
		{
			Vector3 euler = new Vector3(transform.localRotation.eulerAngles.x, transform.localRotation.eulerAngles.y, z);
			transform.localRotation = Quaternion.Euler(euler);
		}

		// Token: 0x06001543 RID: 5443 RVA: 0x00091600 File Offset: 0x0008F800
		public static void SetLocalRotation(this Transform transform, float x, float y, float z)
		{
			Vector3 euler = new Vector3(x, y, z);
			transform.localRotation = Quaternion.Euler(euler);
		}
	}
}
